package com.godyao.mall.swagger.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author godyao
 * @date 2022/4/7
 */
@Data
@Component
@EnableConfigurationProperties
@ConfigurationProperties(prefix = "spring.swagger")
public class SwaggerProperties {
    private static final String PREFIX = "spring.swagger";

    private String basePackage;

    private Author author;

    private ApiInfo apiInfo;

    @Data
    public static class ApiInfo{
        String title;
        String description;
        String version;
        String termsOfServiceUrl;
        String license;
        String licenseUrl;
    }

    @Data
    public static class Author{
        private String name;
        private String email;
        private String url;
    }
}
